package IO;

import java.io.File;
import java.io.IOException;

public class Demo1 {
    public static void main(String[] args) {
        File f = new File("./test.txt");
        System.out.println(f.getAbsoluteFile());
        System.out.println(f.getName());
        System.out.println(f.getParent());

        try {
            System.out.println(f.getCanonicalPath());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
